import ajax from './ajax'

//请求所有数据
export const request_all = () => ajax('https://restcountries.com/v3.1/all', 'GET')

//请求详情数据
export const request_detail = (data) => ajax('https://restcountries.com/v3.1/name/' + data.area, 'GET')
